<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>圣杯布局</title>
    <style>
        .header,.footer {
            background-color: #f0f0f0;
            text-align: center;
        }
        .content {
            padding-left: 120px;
            padding-right: 200px;
        }
        .left {
            width: 120px;
            background-color: red;
            margin-left: -120px; /* 左移自身宽度 */
            position: relative;
            left: 120px; /* 左移自身宽度 */
        }
        .center {
            background-color: skyblue;
            width: 100%;
        }
        .right {
            width: 200px;
            background-color: green;
            margin-right: -200px; /* 左移自身宽度 */
            position: relative;
            right: 200px; /* 左移自身宽度 */
        }
        .column {
            float: left;
            text-align: center;
        }
        .footer {
            clear: both;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="header">this is header</div>
        <div class="content">
            
            <div class="left column "  >left</div>
            <div class="center column "  >center</div>
            <div class="right column "  >right</div>
        </div>
        <div class="footer">this is footer</div>
    </div>
</body>
</html>